package com.common;

public enum ResultEnum {
    SUCCESS(200, "操作成功"),
    FAIL(400, "操作失败"),
    ERROR(500,"服务端异常"),
    FORBID(403, "没有权限"),
    LOGOUT(401, "尚未登录");


    int code;
    String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
